package mysql

import "gorm.io/gorm"

type Video struct {
	gorm.Model
	VideoTitle   string `gorm:"type:varchar(255);not null;comment:标题"`
	VideoName    string `gorm:"type:varchar(255);not null;comment:电影"`
	VideoAddress string `gorm:"type:varchar(255);not null;comment:上海"`
	VideoSort    int    `gorm:"type:int(11):not null;comment:排序"`
	VideoPro     string `gorm:"type:varchar(255);not null;comment:详情"`
}

func (v *Video) Create() error {
	return DB.Create(&v).Error
}
